<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" type="text/css" href="../../../Themes/default/easyui.css">
		<link rel="stylesheet" type="text/css" href="../../../Themes/icon.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/demo.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/common.css">
		<link rel="stylesheet" type="text/css" href="../../../CSS/print.css">
	</head>

	<body>
		<div class="div_print_info_portait">
			<h1 align="center">绵阳市高水农副产品批发有限公司</h1>
			<h1 align="center">收费明细单</h1>
			<form id="ff" method="post" style="width:95%;">
				<table cellspacing="4" style="margin-top: 10px;margin-left: 0px;margin-bottom: 10px;">
					<tr>
						<th>订单编号</th>
						<td>
							<input type="text" id="input_ORDER_NO" name="ORDER_NO" class="print_text_style" />
						</td>
					</tr>
				</table>
				<table class="altrowstable printtable" style="text-align: left;">
					<tr>
						<td width="15%">租户姓名</td>
						<td width="35%">
							<input type="text" id="input_TENANT_NAME" class="print_text_style" name="TENANT_NAME" />
						</td>
						<td width="15%">缴费时间</td>
						<td width="35%">
							<input type="text" id="input_COST_DATE" class="print_text_style" name="COST_DATE" />
						</td>
					</tr>
					<tr>
						<td>收费类型</td>
						<td>
							<input type="text" class="print_text_style" id="input_CHARGETYPE" name="CHARGETYPE" />
						</td>
						<td>费用名称</td>
						<td>
							<input name="CHARGENAME" id="input_CHARGENAME" class="print_text_style" type="text" />
						</td>

					</tr>
					<tr>
						<td>缴费人</td>
						<td>
							<input type="text" class="print_text_style" id="input_PAYER" name="PAYER" />
						</td>
						<td>总金额</td>
						<td>
							<input type="text" class="print_text_style" id="input_SUM" name="SUM" />
						</td>
					</tr>
				</table>
				<table class="altrowstable printtable" style="text-align: left;margin-top: 0px;">
					<tr>
						<td width="15%">备注</td>
						<td><input class="print_text_style" NAME="MEMO" id="input_MEMO" type="text" style="width:100%;height: 50px;" /></td>
					</tr>
				</table>
			</form>
		</div>
	</body>

	<script type="text/javascript" src="../../../JS/common.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.min.js"></script>
	<script type="text/javascript" src="../../../JS/jquery.easyui.min.js"></script>
	<script type="text/javascript">
		var id = getID(); /*得到当前界面的id*/
		$(document).ready(function(){
	    	loadRemote();
		});
		function loadRemote() {
			$.ajax({
				dataType: "json",
				type: "get",
				url: RemoteLinkAddress + '/frozen/charge/findbyid.do?ID=' + id,
				success: function(result) {
					if(result != null) {
						getPrintData(result);
						change();
					}
				},
				error: function(xhr, status, error) {
					$.messager.alert("错误", "请求失败!");
				}
			});
		}
		function change()
		{
			var s = $("#input_CHARGETYPE").val();
			var _val = "";
			switch(s) {
				case "0":
					_val = "收费";
					break;
				case "1":
					_val = "退费";
					break;
				case "2":
					_val = "充值";
					break;
			}
			console.log(_val);
			$("#input_CHARGETYPE").val(_val);
		}
	</script>

</html>